<script>
export default {
  name: 'subMenu',
  props: {
    list: {},
  },
  render(h) {
    return h('template', [
      h(
        'el-submenu',
        {
          attrs: {
            key: 'overflow-menu',
            index: 'overflow-menu',
            'popper-append-to-body': true,
          },
          class: {
            'overflow-btn': true,
          },
        },
        [
          h('span', { slot: 'title' }, [this.$slots?.default?.[0] || '...']),
          ...this.list,
        ],
      ),
    ])
  },
}
</script>
